using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using mvc.Models;

public class TheWordCupController : Controller
{
    public IActionResult Index()
    {
        List<Players> players = new List<Players>();
        players.Add(new Players { NUmber = 10, Name = "梅西" });
        players.Add(new Players { NUmber = 9, Name = "苏亚雷斯" });
        players.Add(new Players { NUmber = 4, Name = "拉基蒂奇" });
        players.Add(new Players { NUmber = 41, Name = "马纳伊" });
        players.Add(new Players { NUmber = 23, Name = "乌姆蒂蒂" });
        players.Add(new Players { NUmber = 1, Name = "特尔施特根" });
        //TempData["players"] = players;
        //ViewData["players"] = players;
        ViewBag.players = players;
        return View();
    }
}
